﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Tomato.Libraries.Databases;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Popups;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
using Tomato.Libraries.Databases.Models;
using Lex.Db;
using Tomato.Libraries.Logging;
using System.Diagnostics.Tracing;
using Tomato.Libraries.Patterns;

// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238

namespace Tomato.ExpenseDiary
{
    /// <summary>
    /// An empty page that can be used on its own or navigated to within a Frame.
    /// </summary>
    public sealed partial class MainPage : Page
    {
        public MainPage( )
        {
            Singleton<TomatoEventListener>.Instance.Initialize( );

            DataContext = new MainPageViewModel( );

            this.InitializeComponent( );
        }

        private void Button_Click( object sender, RoutedEventArgs e )
        {

            TomatoEventSource.WriteInfomation( "A very heavy rain." );

        }
    }
}